When you run the simulation now you will watch the default behavior of the SingleProc as the MUs, on leaving Packing, alternate between both the Drains. However, we need to separate the TVs from the VCRs and send them to their correct Drain. We accomplish this with a Method as an exit control of FinalProcess.
Insert a Method
below the SingleProc Packing.
Rename this Method PackingControl.
Enter the following source code:
is
do
if
@.cont.name = "TV" then
@.move(TVs);
else
@.move(VCRs);
end;
end;
Open the SingleProc Packing and click the tab Controls.
Click the button next to Exit and select PackingControl.
Click OK to apply your changes and to close the window.
After the MUs have been processed on the SingleProc Packing, they are sorted by the Method PackingControl and sent to their respective Drains.